Skip to content

Add demo for JEP 377 – ZGC: A Scalable Low-Latency GC (Java 15)#308

Merged
AloisSeckar merged 3 commits intoAloisSeckar:masterfrom
Wassef-Chebbi:feature/jep377-zgc
Oct 27, 2025
Merged

Add demo for JEP 377 – ZGC: A Scalable Low-Latency GC (Java 15)#308
AloisSeckar merged 3 commits intoAloisSeckar:masterfrom
Wassef-Chebbi:feature/jep377-zgc

Conversation

@Wassef-Chebbi
Copy link
Contributor

@Wassef-Chebbi Wassef-Chebbi commented Oct 25, 2025

This Pull Request adds a new demo for JEP 377 – ZGC: A Scalable Low-Latency Garbage Collector (Java 15).

  • I followed the project’s contribution guide and verified that the code compiles and runs successfully.
  • Added a new JSON entry for JEP 377 in the corresponding resources file.
  • Updated Init15.java to include the new demo in the execution sequence.
  • The demo class (ZGarbageCollectorDemo.java) contains detailed explanatory comments and JVM usage examples (commands to enable and monitor ZGC).

This JEP cannot be directly demonstrated via code, so the class focuses on explaining ZGC’s principles, usage, and configuration commands for clarity.
Closes #293

Copy link
Owner

@AloisSeckar AloisSeckar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Wassef-Chebbi and thank you for your contribution. It looks good, except two small things in the JSON file. Please, have a look.

"jdk": 15,
"name": "ZGC: A Scalable Low-Latency Garbage Collector",
"description": "Production-ready low-latency garbage collector maintaining sub-10ms pause times for large heaps.",
"link": true,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please, set to "false"...true would be used, if the demo implementation points to some newer variant (JEP 333 will have "link": true, once it gets implemented)

"name": "ZGC: A Scalable Low-Latency Garbage Collector",
"description": "Production-ready low-latency garbage collector maintaining sub-10ms pause times for large heaps.",
"link": true,
"replaced": false,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not valid...we don't use "replaced", please remove

@AloisSeckar AloisSeckar added the changes requested The PR was checked and feedback provided. Changes must be done in order to get it accepted. label Oct 25, 2025
@Wassef-Chebbi
Copy link
Contributor Author

Hi @AloisSeckar,
I’ve applied the requested JSON fixes and merged the latest changes from master to bring the branch up to date.

@AloisSeckar AloisSeckar added hacktoberfest Counts as submission for Hacktoberfest 2025 and removed changes requested The PR was checked and feedback provided. Changes must be done in order to get it accepted. labels Oct 27, 2025
@AloisSeckar AloisSeckar merged commit c5f2ce2 into AloisSeckar:master Oct 27, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest Counts as submission for Hacktoberfest 2025

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JEP 377 – ZGC: A Scalable Low-Latency Garbage Collector

2 participants